package main

import (
	"fmt"
	"go-vue/admin/adapt"
	"strings"
)

func main() {
	//adapt.CreateJwt()
	a := `ameyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiLmtYvor5UiLCJleHAiOjE2NDg3MTk3MTcsImp0aSI6IueUqOaIt2lkIiwiaWF0IjoxNjQ4NzE5MTE3LCJpc3MiOiJnaW4gaGVsbG8iLCJuYmYiOjE2NDg3MTkxMTcsInN1YiI6ImxvZ2luIn0.3xub9PhCa_LTooxB8_SNpwWgiIBlIBNVNHbeRnExNvw`
	b := `Bearer ameyJhbGciOiJIUzI1NiIsInR5Bearer cCI6IkpXVCJ9.eyJhdWQiOiLmtYvor5UiLCJleHAiOjE2NDg3MTk3MTcsImp0aSI6IueUqOaIt2lkIiwiaWF0IjoxNjQ4NzE5MTE3LCJpc3MiOiJnaW4gaGVsbG8iLCJuYmYiOjE2NDg3MTkxMTcsInN1YiI6ImxvZ2luIn0.3xub9PhCa_LTooxB8_SNpwWgiIBlIBNVNHbeRnExNvw`
	token := strings.Replace(b, adapt.JwtPreString,"",1)

	//claims, err := adapt.ParseToken(token)
	claims, err := adapt.ParseToken(a)
	fmt.Println(claims, err)
	fmt.Println(token)
	fmt.Println(a)
}
